// ActionScript file
package gallery.asset.event {
	import flash.events.Event;
	
	import gallery.asset.*;
	
	public class GetXmlEvent extends Event {
		
		public static const GET_XML:String = 'GETXML';
		
		public var data:Object;
		public var service:PhotoService;
		public var imagepath:String = '';
		public var gallery:Gallery;
		
		public function GetXmlEvent(type:String, data:Object, bubbles:Boolean=false, cancelable:Boolean=false) {
			super(type, bubbles, cancelable);
			this.data = data;
		}
		
		override public function clone():Event {
			
			//do get xml based on passed values
			service = new PhotoService('data/'+data.country+'/gallery/'+data.file+'/'+data.file+'.xml', service_listener);
			imagepath = 'data/'+data.country+'/gallery/'+data.file+'/pics/';
			
			return new EventHandler(type, data, bubbles, cancelable);
		}
		
		
		public function service_listener(obj:Gallery): Event {
			gallery = new Gallery();
			gallery = obj;
			
			return 
		}
	}
	
}
